package com.ly.order.service;

import com.domain.Order;

import java.util.List;
import java.util.function.BiConsumer;

public interface OrderService {



    List<Order> queryLocalhost(Order order);

    int insert(Order order);


    /**
     * @describe：rocketmq监听部分调用
     * @author：李勇
     * @date：2023/6/6
     * @param order
     * @return：int
     */
    void createOrder(Order order, String transactionId,BiConsumer<Order,String> tran);


    Order oneById(String id);


}
